The k-mismatch problem revisited
نویسندگان
چکیده
We revisit the complexity of one of the most basic problems in pattern matching. In the k-mismatch problem we must compute the Hamming distance between a pattern of length m and every m-length substring of a text of length n, as long as that Hamming distance is at most k. Where the Hamming distance is greater than k at some alignment of the pattern and text, we simply output “No”. We study this problem in both the standard offline setting and also as a streaming problem. In the streaming k-mismatch problem the text arrives one symbol at a time and we must give an output before processing any future symbols. Our main results are as follows: • Our first result is a deterministic O(nk log k/m + n polylogm) time offline algorithm for k-mismatch on a text of length n. This is a factor of k improvement over the fastest previous result of this form from SODA 2000 [9, 10]. • We then give a randomised and online algorithm which runs in the same time complexity but requires only O(k polylogm) space in total. • Next we give a randomised (1 + )-approximation algorithm for the streaming k-mismatch problem which uses O(k polylogm/ ) space and runs in O(polylogm/ ) worst-case time per arriving symbol. • Finally we combine our new results to derive a randomised O(k polylogm) space algorithm for the streaming k-mismatch problem which runs in O( √ k log k+ polylogm) worst-case time per arriving symbol. This improves the best previous space complexity for streaming k-mismatch from FOCS 2009 [26] by a factor of k. We also improve the time complexity of this previous result by an even greater factor to match the fastest known offline algorithm (up to logarithmic factors).
منابع مشابه
SOLVING FUZZY LINEAR PROGRAMMING PROBLEMS WITH LINEAR MEMBERSHIP FUNCTIONS-REVISITED
Recently, Gasimov and Yenilmez proposed an approach for solving two kinds of fuzzy linear programming (FLP) problems. Through the approach, each FLP problem is first defuzzified into an equivalent crisp problem which is non-linear and even non-convex. Then, the crisp problem is solved by the use of the modified subgradient method. In this paper we will have another look at the earlier defuzzifi...
متن کاملAn Intelligent PV Panel Structure to Extract the Maximum Power in Mismatch Irradiance
a new intelligent photovoltaic (PV) panel structure to extract the maximum power in mismatch irradiance is proposed. In conventional structures, difference of irradiance between series panels can cause the deviation of maximum power point. In this condition tracking MPP becomes difficult and reduces efficiency. Improvements in power electronics and its effects in PV industrial technology, devel...
متن کاملThe streaming k-mismatch problem
We consider the streaming complexity of a fundamental task in approximate pattern matching: the k-mismatch problem. It asks to compute Hamming distances between a pattern of length n and all length-n substrings of a text for which the Hamming distance does not exceed a given threshold k. In our problem formulation, we report not only the Hamming distance but also, on demand, the full mismatch i...
متن کاملNegative Feedback Revisited
Rules are derived for choosing one among the four kinds of basic amplifiers to be embedded in a particular passive feedback network. The loop transmission is identified and conditions for mismatch are obtained from a unified analysis of feedback circuits. Past experience gained with voltage mode basic amplifiers, the laws of duality and mismatch are applied to choose the building blocks employe...
متن کاملThe Sri Lankan Unemployment Problem Revisited
The high unemployment rate of Sri Lanka has been attributed to skills mismatch, to queuing for public sector jobs, and to stringent job security regulations. However, the empirical evidence supporting these explanations is weak. This paper takes a fresh look at the unemployment problem using individual records from the 1995 Labor Force Survey and time series for wages in the formal and informal...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2016